home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / allqtips.zip / TECH1.MSG < prev    next >
Text File  |  1992-08-05  |  2KB  |  46 lines

  1.           A QEdit Tip from the SemWare Technical Support Staff
  2.  
  3.                            .. Startup Macros ..
  4.  
  5.         QEdit has the capability of loading and/or executing your
  6.         compiled macro files on startup through the use of command line
  7.         parameters.  QEdit startup macro command line options were
  8.         implemented in QEdit Advanced v2.08.  The macro files being used
  9.         must be in binary format created using the MacroWrite command
  10.         <Esc><M><W> command or QMAC (QEdit's macro translator).
  11.  
  12.         To _load_ a macro from the command line enter "-l" or "/l" (a
  13.         dash or slash and the letter "l") followed immediately by a
  14.         macro filename.  The maximum size of a loadable macro file is 2k.
  15.         The format for loading a macro follows:
  16.  
  17.                 q <filename to edit> -l<macro filename>
  18.  
  19.         To _execute_ a macro from the command line enter "-e" or "/e"
  20.         followed immediately by a macro filename.  The maximum size of
  21.         an executed macro is 500 bytes.  The format for executing a
  22.         macro on startup follows:
  23.  
  24.                 q <filename to edit> -e<macro filename>
  25.  
  26.         When using the execute ("-e or /e") option, the first macro in
  27.         the macrofile is executed.  The macro is then executed only
  28.         after the file to be edited has been loaded.  The macro file is
  29.         executed once and not loaded into the editor.
  30.  
  31.         A filename must be supplied to QEdit to make use of the command
  32.         line parameters.  Both the load and execute macro parameters may
  33.         be used at the same time.  The order that they are specified on
  34.         the command line is not important.  The format for executing a
  35.         macro and loading a macrofile on startup follows:
  36.  
  37.                 q <edit filename> -e<macro filename> -l<macro filename>
  38.  
  39.         To illustrate the above, suppose you want to edit a file called
  40.         WORK.TMP and at the same time, from the command line, load the
  41.         macro file called FIRST.MAC and execute the macro file called
  42.         SECOND.MAC.  From the command line you would enter:
  43.  
  44.                 q work.tmp -lfirst.mac -esecond.mac
  45.  
  46.